<?php
	include_once("login.php");
	
	$conn = new mysqli($host,$user,$passwd, $database)
	or die("SQL connect error: ".mysqli_connect_error());
	
	$userId = $_REQUEST["userId"];
	
	$queryCon = "DELETE FROM contact WHERE userId=$userId";
	mysqli_query($conn, $queryCon);
	
	$queryCat = "DELETE FROM category WHERE userId=$userId";
	mysqli_query($conn, $queryCat);
	
	mysqli_close($conn);
?>
